package com.woniuxy.mapper;

import com.woniuxy.entity.DrugReturnDetail;
import com.woniuxy.entity.Withdrawal;

import java.util.List;

public interface WithdrawalMapper {
    List<Withdrawal> queryList(Withdrawal withdrawal);
    //添加一条退药申请表数据
    void addWithdrawal(Withdrawal withdrawal);
    //添加退药明细
    void addBatchDrugReturnDetails(List<DrugReturnDetail> drugReturnDetails);


    //根据退药申请编号查询退药明细
    List<DrugReturnDetail> queryDrugReturnDetail(String dwNo);

    //根据退药申请表id更改退药申请表状态为已完成：1
    void updateWithdrawal(Withdrawal withdrawal);

    //根据退药申请表id查询退药申请表
    Withdrawal queryWithdrawalById(Integer id);

}
